import sys

from PyQt6.QtWidgets import QApplication, QWidget, QLabel
from PyQt6 import uic
from qframelesswindow import FramelessWindow, StandardTitleBar

class login_form(QWidget):
	def __init__(self):
		super().__init__()
		self.init_ui()

	def init_ui(self):
		self.ui = uic.loadUi("./ui/test.ui")
		self.testbutton1 = self.ui.testbutton
		self.testbutton1.clicked.connect(self.login)#创建连接


	def login(self):
		print("点击")

if __name__ == "__main__":
	app = QApplication(sys.argv)
	w = login_form()
	w.ui.show()
	sys.exit(app.exec())